<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增长度单位</title>
    <style>
        .box1 {
            /* vw 视口宽度的百分之几  vh视口高度的百分之几*/
            width: 50vw;
            height: 20vh;
            background-color: lime;
        }
        .box2 {
            /* vmax 视口的宽度和高度哪个大用哪个 vmin视口的高度和宽度哪个小用哪个 */
            width: 50vmax;
            height: 20vmin;
            background-color: pink;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>
</html>